package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class EmpTProdBase implements java.io.Serializable {
	/**
	 * pk 商品编码
	 **/
	String productCode;
	String prodType;// 商品类型1:普通商品，2：券卡；3：虚拟商品
	EmpTProdSale sale;
	/**
	 * 商品分类
	 **/
	Long prodKindId;
	EmpTProdKind prodKind;
	/**
	 * 名称
	 **/
	String name;
	/**
	 * 商品简称
	 **/
	String shortName;
	/**
	 * 供应商的商品编码
	 **/
	String vendorCode;
	/**
	 * 状态：0－停用，1－启用
	 **/
	String status;
	/**
	 * 备注
	 **/
	String note;
	/**
	 * 是否组装商品： 0－独立商品 1－组装商品
	 **/
	String isdiy;
	/**
	 * 保质期限
	 **/
	Long lift;
	/**
	 * 保质期限单位参数p_date_unit天，周，月，季，年
	 **/
	String liftUnit;
	/**
	 * 所属机构
	 **/
	private Long deptId;
	private VDepartment dept;
	/**
	 * 创建人
	 **/
	private VUser createUser;
	/**
	 * 创建时间
	 **/
	Date createDate;
	/**
	 * 修改人
	 **/
	private VUser modiUser;
	/**
	 * 修改时间
	 **/
	Date modiDate;
	/**
	 * 商品条码
	 **/
	String prodBarcode;
	/**
	 * SKU码
	 **/
	String sku;
	/**
	 * 销售标志：0-不可销售；1-可销售
	 **/
	String isSale;
	/**
	 * 包装单位
	 **/
	String measUnit;
	/**
	 * 颜色
	 **/
	String color;
	/**
	 * 尺寸
	 **/
	String size;
	/**
	 * 净重(g)
	 **/
	Long netweight;
	/**
	 * 毛重(g)
	 **/
	Long weight;
	/**
	 * 体积(立方厘米)
	 **/
	Long capacity;
	/**
	 * 长(厘米)
	 **/
	Long length;
	/**
	 * 宽(厘米)
	 **/
	Long width;
	/**
	 * 高(厘米)
	 **/
	Long height;
	/**
	 * 规格
	 **/
	String specification;
	/**
	 * 品牌
	 **/
	String brand;
	Long stock;// 库存

	public EmpTProdBase() {
	}

	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShortName() {
		return this.shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getVendorCode() {
		return this.vendorCode;
	}

	public void setVendorCode(String vendorCode) {
		this.vendorCode = vendorCode;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getIsdiy() {
		return this.isdiy;
	}

	public void setIsdiy(String isdiy) {
		this.isdiy = isdiy;
	}

	public Long getLift() {
		return this.lift;
	}

	public void setLift(Long lift) {
		this.lift = lift;
	}

	public String getLiftUnit() {
		return this.liftUnit;
	}

	public void setLiftUnit(String liftUnit) {
		this.liftUnit = liftUnit;
	}

	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModiDate() {
		return this.modiDate;
	}

	public void setModiDate(Date modiDate) {
		this.modiDate = modiDate;
	}

	public String getProdBarcode() {
		return this.prodBarcode;
	}

	public void setProdBarcode(String prodBarcode) {
		this.prodBarcode = prodBarcode;
	}

	public String getSku() {
		return this.sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public String getIsSale() {
		return this.isSale;
	}

	public void setIsSale(String isSale) {
		this.isSale = isSale;
	}

	public String getMeasUnit() {
		return this.measUnit;
	}

	public void setMeasUnit(String measUnit) {
		this.measUnit = measUnit;
	}

	public String getColor() {
		return this.color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getSize() {
		return this.size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public Long getNetweight() {
		return this.netweight;
	}

	public void setNetweight(Long netweight) {
		this.netweight = netweight;
	}

	public Long getWeight() {
		return this.weight;
	}

	public void setWeight(Long weight) {
		this.weight = weight;
	}

	public Long getCapacity() {
		return this.capacity;
	}

	public void setCapacity(Long capacity) {
		this.capacity = capacity;
	}

	public Long getLength() {
		return this.length;
	}

	public void setLength(Long length) {
		this.length = length;
	}

	public Long getWidth() {
		return this.width;
	}

	public void setWidth(Long width) {
		this.width = width;
	}

	public Long getHeight() {
		return this.height;
	}

	public void setHeight(Long height) {
		this.height = height;
	}

	public String getSpecification() {
		return this.specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public String getBrand() {
		return this.brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getCreateDateStr() {
		return DateUtil.dateToString(this.createDate, DateUtil.patternA);
	}

	public String getModiDateStr() {
		return DateUtil.dateToString(this.modiDate, DateUtil.patternA);
	}

	public String getProdType() {
		return prodType;
	}

	public void setProdType(String prodType) {
		this.prodType = prodType;
	}

	public Long getProdKindId() {
		return prodKindId;
	}

	public void setProdKindId(Long prodKindId) {
		this.prodKindId = prodKindId;
	}

	public EmpTProdKind getProdKind() {
		return prodKind;
	}

	public void setProdKind(EmpTProdKind prodKind) {
		this.prodKind = prodKind;
	}

	public VDepartment getDept() {
		return dept;
	}

	public void setDept(VDepartment dept) {
		this.dept = dept;
	}

	public VUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(VUser createUser) {
		this.createUser = createUser;
	}

	public VUser getModiUser() {
		return modiUser;
	}

	public void setModiUser(VUser modiUser) {
		this.modiUser = modiUser;
	}

	public EmpTProdSale getSale() {
		return sale;
	}

	public void setSale(EmpTProdSale sale) {
		this.sale = sale;
	}

	public Long getStock() {
		return stock;
	}

	public void setStock(Long stock) {
		this.stock = stock;
	}

	public String getIsSaleStr() {
		if (this.isSale.equals("1"))
			return "可售";
		else
			return "停售";
	}

	public String getIsdiyStr() {
		if (this.isdiy.equals("1"))
			return "是";
		else
			return "否";
	}

	public String getMeasUnitStr() {
		return FormateUtil.getInstance().getNameByCode("p_meas_unit",
				this.measUnit);
	}

	public String getStatusStr() {
		if (this.status.equals("1"))
			return "启用";
		else
			return "停用";
	}
}